package OOM;

/**
 *  -Xss128k
 * @author caihe
 * @date 2021/11/1 13:44
 */
public class StackOOM {
    
    private static int deep = 0;

    public static void main(String[] args) {
        try {
            dfs();
        } catch (Throwable e) {
            System.out.println(deep);
            e.printStackTrace();
        }
    }
    
    private static void dfs() {
        deep++;
        dfs();
    }
    
}
